[mirrors]
http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-3.5.tar.gz

[vars]
filesize=7190734
sha512=a39eb8c11b394e4d5c1164da46d74f283f489057f70c192277d94e511a3716c86474a07a7c80ce602a53e41959f75e82312ad9f5cb365953c24445af4456e1ce

[deps]
libpng
curl
libxml2
cairo
gtk+2
libglade
libmng
liblcms

[deps.host]
perl
perl5-HTML-Parser
flex
gperf

[build]
patch -p1 < "$K"/netsurf-gperf-warning.patch
# FIXME: netsurfs Makefile suppresses parallel builds
CFLAGS="-I$butch_prefix/include/cairo/" NETSURF_USE_BMP=NO \
 make Q= -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/share/applications
cat << EOF > "$dest"/share/applications/netsurf.desktop
[Desktop Entry]
Name=Netsurf
Comment=Web Browser
Exec=netsurf
Icon=netsurf
MimeType=text/html;x-scheme-handler/http;x-scheme-handler/https;
Terminal=false
Type=Application
Categories=GTK;Network;WebBrowser;
EOF
